package com.example.base;

import java.util.List;

public class ResultVO {

	private String msg;

	private boolean success;

	private String errorCode;

	private List<?> resultList;

	private Object resultObject;

	public ResultVO() {

	}

	public ResultVO(String msg, boolean success) {

		this.msg = msg;
		this.success = success;
	}

	public ResultVO(String msg, boolean success, String errorCode) {

		super();
		this.msg = msg;
		this.success = success;
		this.errorCode = errorCode;
	}

	public ResultVO(boolean success, List<?> resultList) {

		super();
		this.success = success;
		this.resultList = resultList;
	}

	public ResultVO(boolean success, Object resultObject) {

		super();
		this.success = success;
		this.resultObject = resultObject;
	}
	
	public ResultVO(boolean success, Object resultObject,String msg) {

		super();
		this.msg=msg;
		this.success = success;
		this.resultObject = resultObject;
	}

	public ResultVO(boolean success, List<?> resultList, String msg) {

		super();
		this.msg=msg;
		this.success = success;
		this.resultList = resultList;
	}

	public String getMsg() {

		return this.msg;
	}

	public void setMsg(String msg) {

		this.msg = msg;
	}

	public boolean isSuccess() {

		return success;
	}

	public void setSuccess(boolean success) {

		this.success = success;
	}

	public String getErrorCode() {

		return errorCode;
	}

	public void setErrorCode(String errorCode) {

		this.errorCode = errorCode;
	}

	public List<?> getResultList() {

		return this.resultList;
	}

	public void setResultList(List<?> resultList) {

		this.resultList = resultList;
	}

	public Object getResultObject() {

		return this.resultObject;
	}

	public void setResultObject(Object resultObject) {

		this.resultObject = resultObject;
	}

}